import numpy as np

array = np.random.randint(low=1, high=1000, size=10)

print(array)


def order_search(a: list, target: int) -> object:
    for i, x in enumerate(a):
        if x == target:
            return i + 1
    return -1

value = array[np.random.randint(low=0, high=9, size=1)]

print(value)

print(order_search(array, value))
